package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;
import com.lagou.pojo.MappedStatement;

import java.util.List;

/**
 * description Executor
 * author wy
 * date 2021-04-07 20:35
 **/
public interface Executor
{
    <E> List<E> query(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

    int insert(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

    int update(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;

    int delete(Configuration configuration, MappedStatement mappedStatement, Object... params) throws Exception;
}
